
const getDefaultState = () => {
  return {
    dictSear: {},
    dictTypeSear: {},
    rmDictIds: [],
    rmDictTypeIds: []
  }
}

const state = getDefaultState()

const mutations = {
  setDictSear(state, val) {
    if (!val) {
      state.dictSear = {
        keyword: '',
        offset: 1,
        limit: 5,
        tenantId: '',
        startTime: '',
        endTime: ''
      }
    } else {
      state.dictSear = val
    }
    console.log(state.dictSear);
  },
  setDictTypeSear(state, val) {
    if (!val) {
      state.dictTypeSear = {
        keyword: '',
        offset: 1,
        limit: 5,
        tenantId: '',
        startTime: '',
        endTime: ''
      }
    } else {
      state.dictTypeSear = val
    }
  },
  setRmDictIds(state,val){
    state.rmDictIds = val
  }
}

const actions = {
  
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
